From 90dac40a78b98f258e6c00bf65bac100821d62e2 Mon Sep 17 00:00:00 2001 From: "ack@kneesa.uk.xensource.com" Date: Mon, 22 May 2006 15:42:54 +0100 Subject: [PATCH] Patch linux so that /proc/stat shows all -- not just online -- CPUs. This way, tools such as TOP don't freak out when CPUs are hotplugged. --- patches/linux-2.6.16.13/xen-hotplug.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/linux-2.6.16.13/xen-hotplug.patch diff --git a/patches/linux-2.6.16.13/xen-hotplug.patch b/patches/linux-2.6.16.13/xen-hotplug.patch new file mode 100644 index 0000000000..529cd568c1 --- /dev/null +++ b/patches/linux-2.6.16.13/xen-hotplug.patch @@ -0,0 +1,11 @@ +--- ../pristine-linux-2.6.16.13/fs/proc/proc_misc.c 2006-05-02 22:38:44.000000000 +0100 ++++ ./fs/proc/proc_misc.c 2006-05-22 15:29:34.000000000 +0100 +@@ -433,7 +433,7 @@ static int show_stat(struct seq_file *p, + (unsigned long long)cputime64_to_clock_t(irq), + (unsigned long long)cputime64_to_clock_t(softirq), + (unsigned long long)cputime64_to_clock_t(steal)); +- for_each_online_cpu(i) { ++ for_each_cpu(i) { + + /* Copy values here to work around gcc-2.95.3, gcc-2.96 */ + user = kstat_cpu(i).cpustat.user; -- 2.30.2